<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<script language="JavaScript" type="text/javascript">
function page_load(){
	dialog_size(850);
	$(".form input:first").focus();
	dialog_editor("#content");
}
</script>
<?=form_open_multipart("$title/post/$type_id")?>
<div class="dialog-title">
<h2><?=admin_create_caption($caption)?></h2>
<span><a href="javascript:close_dialog();">关闭 [X]</a></span>
</div>
<?=validation_errors('<div class="warning">','</div>')?>
<div class="form">
<ul class="halfside">
	<li>职位名称 &nbsp;<br />
		<?=form_new_input('title','','class="text"')?>
    </li>
	<li>招聘类型 / 状态<br />
		<?=form_dropdown('type_id',$type_tree)?>&nbsp; &nbsp;
		<label><?=form_new_checkbox('show','1',true)?>前台可见</label>
	</li>
	<i class="clear"></i>
	<li>招聘人数<span>"0"表示若干</span><br />
		<?=form_new_input('amount','0','class="text"')?></li>
	<li>年龄要求<br />
		<?=form_new_input('age','','class="text s"')?>
		至
		<?=form_new_input('age_max','','class="text s"')?>
	</li>
    <i class="clear"></i>
	<li>性别要求<br />
		<label><?=form_new_radio('gender','不限',true)?>不限</label>&nbsp; &nbsp;
		<label><?=form_new_radio('gender','男')?>男</label>&nbsp; &nbsp;
		<label><?=form_new_radio('gender','女')?>女</label>&nbsp; &nbsp;
	</li>
	
	<li>工作地区<br />
		<?=form_new_input('place','','class="text"')?>
    </li>
	<li>学历要求<br />
		<?=form_dropdown('edu',$this->lang->line('edu_tree'))?>
    </li>
	<li>工作年限<br />
		<?=form_dropdown('workyear',$this->lang->line('woryear_tree'))?>
    </li>
	<li>月薪<br />
		<?=form_dropdown('salary',$this->lang->line('salary_tree'))?>
    </li>
	<!--<li>field1 &nbsp;<br />
		<? //=form_new_input('field1','','class="text"')?>
    </li>
    <li>field2 &nbsp;<br />
		<? //=form_new_input('field2','','class="text"')?>
    </li>
    <li>field3 &nbsp;<br />
		<? //=form_new_input('field3','','class="text"')?>
    </li>
    <li>field4 &nbsp;<br />
		<? //=form_new_input('field4','','class="text"')?>
    </li>-->
</ul>
<p>职位描述/岗位要求<br />
	<?=form_textarea('content',set_value('content'),'id="content"')?>
</p>
</div>
<div class="dialog-bottom">
	<div class="dbleft">
		<a href="javascript:close_dialog();" class="button"><span>&nbsp; 取消 &nbsp;</span></a>
	</div>
	<div class="dbright">
		<span class="submit"><input type="submit" value="保存信息" /></span>
	</div>
	<div class="clear"></div>
</div>
<?=form_close()?>